import request from '@/utils/request'

// 查询物流司机列表
export function listDrivers(query) {
  return request({
    url: '/ewem/drivers/list',
    method: 'get',
    params: query
  })
}

// 查询物流司机详细
export function getDrivers(driverId) {
  return request({
    url: '/ewem/drivers/' + driverId,
    method: 'get'
  })
}

// 新增物流司机
export function addDrivers(data) {
  return request({
    url: '/ewem/drivers',
    method: 'post',
    data: data
  })
}

// 修改物流司机
export function updateDrivers(data) {
  return request({
    url: '/ewem/drivers',
    method: 'put',
    data: data
  })
}

// 删除物流司机
export function delDrivers(driverId) {
  return request({
    url: '/ewem/drivers/' + driverId,
    method: 'delete'
  })
}
